%h1.photo Edit photo information
%table.photo
  - form_for @photo, photos_url do |form|
    %tr
      %td.alongside_image{:rowspan => "7"}
        %img.small_photo{:src => @photo.public_filename(:small)}
    %tr
      %td.field_title *Caption:
      %td.area= form.text_area      :caption
      %td.error= error_message_on   :photo, :caption
    %tr
      %td.field_title Show:
      %td.select_field
        %select{:name => "photo[show_id]"}
          %option{:value => ''}none
          - @shows.each do |show|
            %option{:value => show.id, :selected => ("selected" if show == @photo.show)}
              = show.location + " on " + show.start_time.strftime("%B %o at %I:%M %p")
    %tr
      %td.submit= submit_tag 'Update'
  - form_for @photo, photos_url, :html => {:method => :delete} do |form|      
    %tr
      %td.submit= submit_tag 'Delete'